import Mock from 'mockjs';

export function mock() {
    Mock.mock(/team\/rebate/, 'get', {
        status: 0,
        message: 'OK',
        data: {
            total: 12,
            data: [
                {
                    level: 1,
                    nickname: '昵称',
                    mobile: 12365437545,
                    avatar: 'http://www.baidu.com/avatar.jpg',
                    rebate: 213,
                },
            ],
        },
    });
    // 团队订单列表
    Mock.mock(/team\/order/, 'get', {
        status: 0,
        message: 'OK',
        data: {
            total: 12,
            data: [
                {
                    id: 123,
                    nickname: 123,
                    order_name: '',
                    avatar: 'http:/www.baidu.com',
                    created_at: '2019-01-01 14:01:23',
                    title: '套系',
                    shop: '商铺',
                    referrer: '推荐人',
                    rebate: 123,
                },
            ],
        },
    });
    // 团队成员排行
    Mock.mock(/team\/lower_rank/, 'get', {
        status: 0,
        message: 'OK',
        data: [
            {
                nickname: 'wqb',
                avatar: 'https://www.baidu.com',
                score: 124,
            },
        ],
    });
}
